package factory.simple;

public class PhoneFactory {
    public static Phone producePhone(String type){
        switch (type){
            case "xiaomi":
                return new XiaomiPhone();
            case "huawei":
                return new HuaweiPhone();
            default:
                return null;
        }
    }
}
